package com.acegear.horizon.domain.repository.jpa;

import com.acegear.horizon.domain.models.jpa.ClubEventStage;

import org.springframework.data.repository.CrudRepository;

import java.util.List;
import java.util.Optional;

/**
 * Created by mercury on 2016/12/22.
 */
public interface ClubEventStageRepository extends CrudRepository<ClubEventStage, Long> {
    Optional<ClubEventStage> findByStageId(Long stageId);

    List<ClubEventStage> findByEventId(Long eventId);

    Optional<ClubEventStage> findByStageIdAndEventId(Long stageId, Long eventId);


}
